<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script>
        //1、javascript的内置对象-数组
        var myArray = new Array(3);
        myArray[0] = "jim";
        myArray[1] = "tom";
        myArray[2] = "late";

        var myArray1 = new Array("JIM","TOM","Kate");
        document.write("数组的长度为："+myArray1.length + "<br/>");

        for(var i=0;i<myArray1.length;i++){
            document.write("数组myArray1的第："+i+" 个元素为："+"&nbsp; "+myArray1[i] + "<br/>");
        }

        for(var j=1;j<5;j++){
            for(var m=1;m<=j;m++){
                document.write("*");
            }
            document.write("<br/>");
        }

        //2、js对象-日期对象
        var myDate = new Date();
        document.write("年："+myDate.getFullYear() + " 月："+myDate.getMonth() + " 日："+myDate.getDate() + " 星期："+myDate.getDay());

        //3、js对象- 其它对象，略



    </script>
</head>
<body>

</body>
</html>